package com.forever.user.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.forever.base.BaseDaoImpl;
import com.forever.entity.User;
import com.forever.user.mapper.UserDataDaoMapper;

@Repository
public class UserDataDaoImpl extends BaseDaoImpl<User, UserDataDaoMapper> implements UserDataDao {

	public UserDataDaoImpl() {
		setMapperClass(UserDataDaoMapper.class);
	}

	@Override
	public User get(String id) {
		return getMapper().get(id);
	}

	@Override
	public void saveUser(User user) {
		getMapper().save(user);
	}

	@Override
	public List<User> getAll() {
		return getMapper().getAll();
	}
}